package com.goktech.olala.core.service.impl;

import com.goktech.olala.core.resp.RespCollectVo;
import com.goktech.olala.core.service.ICollectService;
import com.goktech.olala.server.dao.goods.CollectMapper;
import com.goktech.olala.server.pojo.goods.Collect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Classname CollectServiceImp
 * @Description TODO
 * @Date 2020/12/19 21:43
 * @Created by sanming
 */
@Service
public class CollectServiceImp implements  ICollectService {

    @Autowired
    CollectMapper collectMapper;

    @Override
    public int insert(Collect record) {
        return collectMapper.insert(record);
    }

    @Override
    public List<Collect> selectByPrimaryKey(String collectId) {
        return collectMapper.selectByPrimaryKey(collectId);
    }

    @Override
    public List<RespCollectVo> queryAllMyCollect(Collect collect) {
        return collectMapper.selectByExample(collect);
    }
}
